package net.xdclass.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Allen
 * @version 1.0
 * @date 2022/11/11 21:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`domain`")
public class DomainDO implements Serializable {

    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * ⽤户⾃⼰绑定的域名
     */
    @TableField(value = "account_no")
    private Long accountNo;

    /**
     * 域名类型，⾃建custom, 官⽅offical
     */
    @TableField(value = "domain_type")
    private String domainType;

    @TableField(value = "`value`")
    private String value;

    /**
     * 0是默认，1是禁⽤
     */
    @TableField(value = "del")
    private Integer del;

    @TableField(value = "gmt_create")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

}